<template>
	<view class="container">
		<view class="help-item flex-x-bet-y-center" v-for="(item,index) in helpList" :key="index" @tap="navTo(item)">
			<text>{{item.name}}</text>
			<u-icon name="arrow-right" size="30"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				helpList: [{
					name: '个人信息保护',
					type: 'PERSONAL_INFORMATION_PROTECTION',
				}, {
					name: '用户协议',
					type: 'USER_AGREEMENT'
				}, {
					name: '服务规则',
					type: 'SERVICE_RULE'
				}, {
					name: '服务保障',
					type: 'SERVICE_GUARANTEE'
				}, {
					name: '诚信管理',
					type: 'INTEGRITY_MANAGEMENT'
				}]
			};
		},
		methods: {
			navTo(item) {
				this.$myUni.navTo('/pages/other/richText?from=' + item.type)
			}
		}
	}
</script>

<style lang="scss">
	.help-item {
		margin: 30rpx;
		height: 104rpx;
		background: #FFFFFF;
		border-radius: 19rpx;
		padding: 0 30rpx;

		text {
			font-weight: 500;
			font-size: 31rpx;
			color: #333333;
		}
	}
</style>